<!DOCTYPE html>
<html>

<head>
<title>iframe-dwv</title>
<meta charset="UTF-8">
</head>

<script src="../../../dist/dwv.min.js"></script>

<script type="text/javascript">
// Parse a DICOM buffer.
parse = function (buffer) {
  // setup the dicom parser
  var dwvParser = new dwv.dicom.DicomParser();
  // parse the buffer
  dwvParser.parse(buffer);
};
// Parse a DICOM buffer and return the memory.
parse2 = function (buffer) {
  // setup the dicom parser
  var dwvParser = new dwv.dicom.DicomParser();
  // parse the buffer
  dwvParser.parse(buffer);
  // return the memory state
  return performance.memory;
};
</script>

</html>
